package com.ysy.logistics.entities.system;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

/**
 * @ClassDescription:
 * @Author:姚斯羽
 * @Create:2025/3/12 14:34
 **/
@Data
@TableName("sys_user")
@Schema(name = "sys_user", description = "用户实体类")
public class SysUser {
    @Schema(description = "用户id")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;
    @Schema(description = "用户名")
    @TableField(value = "user_name")
    private String username;
    @Schema(description = "密码")
    @TableField(value = "password")
    private String password;
    @Schema(description = "昵称")
    @TableField(value = "nick_name")
    private String nickname;
    @Schema(description = "头像")
    @TableField(value = "avatar")
    private String avatar;
    @Schema(description = "电话")
    @TableField(value = "i_phone")
    private String phone;

    @TableField(value = "create_time")
    private Date createTime;

    @TableField(value = "update_time")
    private Date updateTime;

    @TableLogic
    @TableField(value = "deleted")
    @Schema(description = "逻辑删除", hidden = true)
    private Integer deleted = 0;

    @TableField(value = "statuz")
    @Schema(description = "状态", hidden = true)
    private Integer status;

    @Version
    @TableField(value = "version")
    @Schema(description = "乐观锁", hidden = true)
    private Integer version;

    @TableField(value = "sex")
    @Schema(description = "性别")
    private String sex;

    @TableField
    @Schema(description = "email")
    private String email;
}
